.class public Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;
.super Ljava/lang/Object;
.source "DisplayTrackInMap.java"


# instance fields
.field private polyline:Z

.field private trackInMapPolygon:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

.field private trackInMapPolyline:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;


# direct methods
.method public constructor <init>(Llt/noframe/gpsfarmguide/models/MeasuringModel;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;Z)V
    .locals 1

    .line 16
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 17
    new-instance v0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

    invoke-direct {v0, p1, p2}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;-><init>(Llt/noframe/gpsfarmguide/models/MeasuringModel;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolygon:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

    .line 18
    new-instance v0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;

    invoke-direct {v0, p1, p2}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;-><init>(Llt/noframe/gpsfarmguide/models/MeasuringModel;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolyline:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;

    .line 19
    iput-boolean p3, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->polyline:Z

    return-void
.end method


# virtual methods
.method public displayTracks()V
    .locals 1

    .line 24
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->polyline:Z

    if-eqz v0, :cond_0

    .line 25
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolyline:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;->displayTracks()V

    goto :goto_0

    .line 27
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolygon:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;->displayTracks()V

    :goto_0
    return-void
.end method

.method public getArea()D
    .locals 2

    .line 79
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->polyline:Z

    if-eqz v0, :cond_0

    .line 80
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolyline:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;->getArea()D

    move-result-wide v0

    return-wide v0

    .line 82
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolygon:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;->getArea()D

    move-result-wide v0

    return-wide v0
.end method

.method public getTrack()Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;
    .locals 1

    .line 41
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->polyline:Z

    if-eqz v0, :cond_0

    .line 42
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolyline:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;->getTrack()Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    move-result-object v0

    return-object v0

    .line 44
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolygon:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;->getTrack()Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    move-result-object v0

    return-object v0
.end method

.method public getTrackInMapPolygon()Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;
    .locals 1

    .line 49
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolygon:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

    return-object v0
.end method

.method public getTrackInMapPolyline()Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;
    .locals 1

    .line 53
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolyline:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;

    return-object v0
.end method

.method public isPolyline()Z
    .locals 1

    .line 75
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->polyline:Z

    return v0
.end method

.method public onCameraIdle()V
    .locals 1

    .line 66
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->polyline:Z

    if-eqz v0, :cond_0

    .line 67
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolyline:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;->onCameraIdle()V

    goto :goto_0

    .line 69
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolygon:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;->onCameraIdle()V

    :goto_0
    return-void
.end method

.method public onCameraMove()V
    .locals 1

    .line 58
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->polyline:Z

    if-eqz v0, :cond_0

    .line 59
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolyline:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;->onCameraMove()V

    goto :goto_0

    .line 61
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolygon:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;->onCameraMove()V

    :goto_0
    return-void
.end method

.method public removePolygons()V
    .locals 1

    .line 33
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->polyline:Z

    if-eqz v0, :cond_0

    .line 34
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolyline:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolyline;->removePolygons()V

    goto :goto_0

    .line 36
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->trackInMapPolygon:Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMapPolygon;->removePolygons()V

    :goto_0
    return-void
.end method
